package demo2;

public class test {
    public static void main(String[] args) throws Exception {
        Thread thread1 = new Thread(new MyThread(), "一号窗口");
        Thread thread2 = new Thread(new MyThread(), "二号窗口");
        Thread thread3 = new Thread(new MyThread(), "三号窗口");
        thread1.start();
        thread2.start();
        thread3.start();
        Thread.currentThread().sleep(12100);
        System.out.println(MyThread.num);
    }
}
